package com.attendance.www.hr.beans;

import java.util.ArrayList;
import java.util.List;


public class MenuBean {
	
	/**
	 * id
	 */
	private Integer id;

	/**
	 * 序号
	 */
    private Integer pId;

    /**
     * 识别码
     */
    private String code;

    /**
     * 名称
     */
    private String label;

    /**
     * 地址
     */
    private String url;
    
    /**
     * 别名
     */
    private String alias;
    
    /**
     * 是否为首页，1代表是，0代表不是
     */
    private Integer isHomePage;
    
    /**
     * 标签样式
     */
    private String icons;
    
    /**
     * 子菜单节点
     */
    private List<MenuBean> children=new ArrayList<MenuBean>();

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getpId() {
		return pId;
	}

	public void setpId(Integer pId) {
		this.pId = pId;
	}

	public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }
    
	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public List<MenuBean> getChildren() {
		return children;
	}

	public void setChildren(List<MenuBean> children) {
		this.children = children;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias == null ? null : alias.trim();
	}

	public Integer getIsHomePage() {
		return isHomePage;
	}

	public void setIsHomePage(Integer isHomePage) {
		this.isHomePage = isHomePage;
	}

	public String getIcons() {
		return icons;
	}

	public void setIcons(String icons) {
		this.icons = icons;
	}
}
